//
//  DoctorApplyDetailVc.m
//  QuickCure1
//
//  Created by Ashzenki on 01/11/2016.
//  Copyright © 2016 maoge. All rights reserved.
//

#import "DoctorApplyDetailVc.h"
#import "DoctorApplyModel.h"

@interface DoctorApplyDetailVc ()

@property (weak, nonatomic) IBOutlet UIImageView *iv_picture;
@property (weak, nonatomic) IBOutlet UIView *circleView;
@property (weak, nonatomic) IBOutlet UILabel *lb_patientName;
@property (weak, nonatomic) IBOutlet UILabel *lb_symptom;
@property (weak, nonatomic) IBOutlet UILabel *lb_applyTime;
@property (weak, nonatomic) IBOutlet UILabel *lb_isExamine;
@property (weak, nonatomic) IBOutlet UILabel *lb_doctorName;

@end

@implementation DoctorApplyDetailVc

- (void)awakeFromNib {
    [super awakeFromNib];
    
    
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self setupUI];
}

#pragma mark - 修改sb中的tableView
- (void)setupUI {
    
    self.navigationItem.title = @"申请详情";
    
    self.tableView.contentOffset = CGPointMake(0, 35);
    self.tableView.scrollEnabled = NO;
    
    _iv_picture.layer.cornerRadius = 30;
    _iv_picture.clipsToBounds = YES;
    
    _circleView.layer.cornerRadius = 30;
    _circleView.clipsToBounds = YES;
    
    //开始赋值
    DoctorApplyModel *model = _modelList[_indexPath.row];
    
    _lb_patientName.font = MYROUNDFONT(18);
    
    _lb_symptom.text = model.symptom;
    _lb_symptom.font = MYROUNDFONT(18);
    
    _lb_applyTime.text = model.applyTime;
    _lb_applyTime.font = MYROUNDFONT(18);
    
    _lb_doctorName.text = model.doctor_name;
    _lb_doctorName.font = MYROUNDFONT(18);
    
    _lb_isExamine.font = MYROUNDFONT(16);
    
    switch (model.isExamine) {
        case 0:
            _lb_isExamine.text = @"未申请";
            _circleView.backgroundColor = [UIColor lightGrayColor];
            break;
        case 1:
            _lb_isExamine.text = @"已申请";
            _circleView.backgroundColor = [UIColor greenColor];
            break;
        case 2:
            _lb_isExamine.text = @"审核中";
            _circleView.backgroundColor = [UIColor orangeColor];
            break;
        case 3:
            _lb_isExamine.text = @"已就诊";
            _circleView.backgroundColor = [UIColor purpleColor];
            break;
        default:
            break;
    }
}

- (void)dealloc {
    
    NSLog(@"名医通细节释放");
}


@end


































